package com.suny.FarmStocks.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "存栏信息添加DTO")
public class FarmStocksAddDTO {
    @NotNull(message = "牧场ID不能为空")
    @Schema(description = "牧场ID")
    private Integer farmId;
    
    @NotNull(message = "圈舍ID不能为空")
    @Schema(description = "圈舍ID")
    private Integer penId;
    
    @NotNull(message = "围栏ID不能为空")
    @Schema(description = "围栏ID")
    private Integer fenceId;
    
    @NotNull(message = "存栏数量不能为空")
    @Min(value = 0, message = "存栏数量不能小于0")
    @Schema(description = "存栏数量")
    private Integer livestockCount;
} 
